package com.yg.base.feign;

import com.yg.base.pojo.vo.Item;
import com.yg.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("item-service")
public interface ItemFeignService {
    @GetMapping("/item/item/findAllItem")
    Result getAllItem();

    @GetMapping("/item/item/getById/{id}")
    public Item getItemById(@PathVariable Integer id);
}
